#include "Intersection.h"
#include "structures.h"
#include "Vecteur.h"

Intersection::Intersection() : pointInter(Point()), t(FLT_MAX)
{
	c = Couleur(0,0,0);
}

float Intersection::getDistance()
{
	return t;
}

Intersection& Intersection::operator=(const Intersection& inter){
	pointInter = Point(inter.pointInter);
	normal = Vecteur(inter.normal);
	t = inter.t;
	objet = inter.objet;
	c = Couleur(inter.c);

	return *this;
}